import express from 'express'
import { registerBabel } from './m';
import createMiddleware from './utils/createMiddleware';
import { getMockData } from './utils/getMockData';
import parseRequireDeps from './utils/parseRequireDeps';
import BabelRegister from './utils/RegisterBabel';

const app = express()

app.use((req, res, next)=>{
    console.log('log')
    next()
})

const mockResult = getMockData({
    cwd:process.cwd(),
    registerBabel:registerBabel
})
app.use(createMiddleware(mockResult).middleware)

export default app;
